package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 订单操作记录对象 sys_commodity_log
 *
 * @author ruoyi
 * @date 2021-12-17
 */
public class SysCommodityLog extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * $column.columnComment
     */
    private Long id;

    /**
     * 商品id
     */
    @Excel(name = "商品id")
    private Long commodityId;

    /**
     * 操作人：用户；系统；后台管理员
     */
    @Excel(name = "操作人：用户；系统；后台管理员")
    private String operateMan;

    /**
     * 1->添加; 2->查询, 3->修改; 4->删除
     */
    @Excel(name = "1->添加; 2->查询, 3->修改; 4->删除")
    private Integer commodityStatus;

    @Excel(name = "方法名称")
    private String methodName;

    /**
     * 备注
     */
    @Excel(name = "备注")
    private String note;

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setCommodityId(Long commodityId) {
        this.commodityId = commodityId;
    }

    public Long getCommodityId() {
        return commodityId;
    }

    public void setOperateMan(String operateMan) {
        this.operateMan = operateMan;
    }

    public String getOperateMan() {
        return operateMan;
    }

    public void setCommodityStatus(Integer commodityStatus) {
        this.commodityStatus = commodityStatus;
    }

    public Integer getCommodityStatus() {
        return commodityStatus;
    }

    public String getMethodName() {
        return methodName;
    }

    public void setMethodName(String methodName) {
        this.methodName = methodName;
    }

    public void setNote(String note) {
        this.note = note;
    }

    public String getNote() {
        return note;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("commodityId", getCommodityId())
                .append("operateMan", getOperateMan())
                .append("createTime", getCreateTime())
                .append("commodityStatus", getCommodityStatus())
                .append("methodName", getMethodName())
                .append("note", getNote())
                .toString();
    }
}
